/*
 * @Author: wang_jl
 * @Date: 2021-12-07 17:34:37
 * @LastEditTime: 2021-12-22 19:32:27
 * @LastEditors: Please set LastEditors
 * @Description: In User Settings Edit
 * @FilePath: \central-system\src\modules\SystemInformation\License\api.js
 */
import request from '@/utils/request'
export function getData (data) {
  return request({
    url: '/licenseInfo',
    method: 'get',
    params: data,
  })
}
export function exit (id) {
  return request({
    url: '/sys-monitor/application/license/delete',
    method: 'get',
    params: { id },
  })
}

export function upload (data) {
  return request({
    url: '/license/install',
    method: 'post',
    data: data,
    responseType: 'blob'
  })
}
export function getRegistrationCode () {
  return request({
    url: '/system/info',
    method: 'get'
  })
}